<template>
  <figure>
    <img :src="src" :alt="alt" />
    <h4><slot name="title"></slot></h4>
    <p><slot name="cont"></slot></p>
  </figure>
</template>

<script>
export default {
  props: {
    src: String,
    alt: String,
  },
};
</script>

<style lang="less" scoped>
figure {
  img {
    width: 100%;
  }
  h4 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
  }
  p {
    text-indent: 2em;
  }
}
</style>